<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/vue.js"></script>
</head>
<body>
<!--v-for：列表渲染，遍历容器的元素或者对象的属性。-->
<div id="app">
    <ul >
        <li v-for="name in names">
            {{name}}
        </li>
        <li v-for="value in student">
            {{value}}
        </li>
    </ul>
</div>
<script>
    let vm = new Vue({
        el: "#app",
        data:{
            names:["张三","李四","王五"],
            student:{
                name:"就这",
                age:18
            }
        }
    })
</script>
</body>
</html>